package com.zc.zby.basicframedemo.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;

import com.jude.easyrecyclerview.adapter.BaseViewHolder;
import com.jude.easyrecyclerview.adapter.RecyclerArrayAdapter;
import com.zc.zby.basicframedemo.R;
import com.zc.zby.basicframedemo.model.ProgressModel;
import com.zc.zby.basicframedemo.utils.AdapterViewUtil;
import com.zc.zby.basicframedemo.viewholder.Progress2ViewHolder;

public class Progress2Adapter extends RecyclerArrayAdapter<ProgressModel> {
    public Progress2Adapter(Context context) {
        super(context);
    }

    @Override
    public BaseViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) {
        View itemLayouts = AdapterViewUtil.getItemLayouts(parent.getContext(), viewType, R.layout.c_progress);
        return new Progress2ViewHolder(itemLayouts);
    }
}
